<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!doctype html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>邮件信息详情</title>
	
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<style type="text/css">
		.firstCell{text-align:right;}
		.action .pages form{padding-left:256px;}
		.backButton{margin-left:290px;}
		textarea{ width:200px;heigth:70%; border:1px #797979 solid;}
		table {border-collapse:separate;}
	</style>
	
	<script type="text/javascript" src="/oas/js/jquery-1.11.3.min.js"></script>
	<script type="text/javascript">
	$(ducument).ready(function back(){
		$("#ajax").load("/oas/email/receiveEmail");
	})
	</script>
</head>
<body>
	<div class="action">
		<div class="t">
			邮件信息详情
		</div>
		<div class="pages">
			<form>
				<table>
				<tr>
					<td class="firstCell">邮件标题：</td>
					<td><input type="text" value="<s:property value='#request.email.title'/>" readonly="readonly"/></td>
				</tr>
				<tr>
					<td class="firstCell">邮件内容：</td>
					<td ><textarea readonly="readonly"><s:property value='#request.email.details'/></textarea></td>
				</tr>
				<tr>
					<td class="firstCell">发信时间：</td>
					<td><span><s:property value='#request.email.sendTime.toString().substring(0,10)'/></span></td>
				</tr>
				<tr>
					<td class="firstCell">来自：</td>
					<td><input type="text" value="<s:property value='#request.email.sender.username'/>" readonly="readonly"/></td>
				</tr>
				<tr>
					<td class="firstCell">文件：</td>
					<td><a href="#">下载(此功能还没有实现)</a></td>
				</tr>
				</table>
				<input type="button" class="backButton" onclick="back()" value="返回"/>
			</form>
				
		</div>
	</div>
</body>
</html>